Auto merge of #5252 - matklad:new-context-new, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 27 Mar 2018 18:14:32 +0000 (18:14 +0000)
committerbors <bors@rust-lang.org>
Tue, 27 Mar 2018 18:14:32 +0000 (18:14 +0000)
commitb5ac520531bc44ee363883d53c077206bf86ee35
tree9c4fcb86270f284cc9cadc163b6f24aa5bcad471
parentca7c19c40e5a8281e71d4e2017fe5f944ba2c9eb
parent1a5a38713902f2bdc190e2031892f6345253877a
Auto merge of #5252 - matklad:new-context-new, r=alexcrichton

Supply units to the context at the point of creation

This slightly reshuffles `Context` creation. The main benefit is that we know the set of units when we do `Context::new`, so we could use it to precalculate more things.